package com.ea.admin.pojo.param.company;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EditCompanyParam {
    @ApiModelProperty(value = "单位的id-主键", required = true)
    @NotBlank(message = "单位的id不能为空")
    private String companyId;

    @ApiModelProperty(value = "上级单位的id", required = true)
    @NotBlank(message = "上级单位的id不能为空")
    private String supCompanyId;

    @ApiModelProperty(value = "单位名称", required = true)
    @NotBlank(message = "单位名称不能为空")
    @Size(max = 50, message = "单位名称不能超过50个字符")
    private String companyName;

    @ApiModelProperty(value = "单位联系人id", required = true)
    private String companyContactId;
}
